/**
 * This is a generated class and is not intended for modfication.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - Taobao.as.
 */
package services.taobao
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.http.HTTPMultiService;
import mx.rpc.http.Operation;
import valueObjects.Item;

import com.adobe.serializers.xml.XMLSerializationFilter;

[ExcludeClass]
internal class _Super_Taobao extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
{      
    private static var serializer0:XMLSerializationFilter = new XMLSerializationFilter();
       
    // Constructor
    public function _Super_Taobao()
    {
        // initialize service control
        _serviceControl = new mx.rpc.http.HTTPMultiService("http://gw.api.tbsandbox.com/router/");
         var operations:Array = new Array();
         var operation:mx.rpc.http.Operation;
         var argsArray:Array;       
         
         operation = new mx.rpc.http.Operation(null, "GetCPUs");
         operation.url = "rest";
         operation.method = "GET";
         argsArray = new Array("app_key","cid","codeType","fields","format","method","sign","timestamp","v");
         operation.argumentNames = argsArray;         
         operation.serializationFilter = serializer0;
         operation.properties = new Object();
         operation.properties["xPath"] = "/::items/::item";
         operation.contentType = "application/x-www-form-urlencoded";
		 operation.resultElementType = valueObjects.Item;
         operations.push(operation);
    
         operation = new mx.rpc.http.Operation(null, "taobao");
         operation.url = "rest";
         operation.method = "GET";
         argsArray = new Array("app_key","codeType","fields","format","method","q","sign","timestamp","v");
         operation.argumentNames = argsArray;         
         operation.serializationFilter = serializer0;
         operation.properties = new Object();
         operation.properties["xPath"] = "/::items/::item";
         operation.contentType = "application/x-www-form-urlencoded";
		 operation.resultElementType = valueObjects.Item;
         operations.push(operation);
    
         operation = new mx.rpc.http.Operation(null, "SearchCPUs");
         operation.url = "rest";
         operation.method = "POST";
         argsArray = new Array("app_key","cid","codeType","fields","format","method","sign","timestamp","v");
         operation.argumentNames = argsArray;         
         operation.serializationFilter = serializer0;
         operation.properties = new Object();
         operation.properties["xPath"] = "/::item_search/::items/::item";
         operation.contentType = "application/x-www-form-urlencoded";
		 operation.resultElementType = valueObjects.Item;
         operations.push(operation);
    
         _serviceControl.operationList = operations;  

    
                      
         model_internal::initialize();
    }

	/**
	  * This method is a generated wrapper used to call the 'GetCPUs' operation. It returns an mx.rpc.AsyncToken whose 
	  * result property will be populated with the result of the operation when the server response is received. 
	  * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
	  * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
	  */          
	public function GetCPUs(app_key:String, cid:String, codeType:String, fields:String, format:String, method:String, sign:String, timestamp:String, v:String) : mx.rpc.AsyncToken
	{
		var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("GetCPUs");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(app_key,cid,codeType,fields,format,method,sign,timestamp,v) ;

		return _internal_token;
	}   
	 
	/**
	  * This method is a generated wrapper used to call the 'taobao' operation. It returns an mx.rpc.AsyncToken whose 
	  * result property will be populated with the result of the operation when the server response is received. 
	  * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
	  * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
	  */          
	public function taobao(app_key:String, codeType:String, fields:String, format:String, method:String, q:String, sign:String, timestamp:String, v:String) : mx.rpc.AsyncToken
	{
		var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("taobao");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(app_key,codeType,fields,format,method,q,sign,timestamp,v) ;

		return _internal_token;
	}   
	 
	/**
	  * This method is a generated wrapper used to call the 'SearchCPUs' operation. It returns an mx.rpc.AsyncToken whose 
	  * result property will be populated with the result of the operation when the server response is received. 
	  * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
	  * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
	  */          
	public function SearchCPUs(app_key:String, cid:String, codeType:String, fields:String, format:String, method:String, sign:String, timestamp:String, v:String) : mx.rpc.AsyncToken
	{
		var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("SearchCPUs");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(app_key,cid,codeType,fields,format,method,sign,timestamp,v) ;

		return _internal_token;
	}   
	 
}

}
